`timescale 1ns / 1ps 
 
//////////////////////////////////////////////////////////////////////////////// 
// Company:  
// Engineer: 
// 
// Create Date:   20:00:19 03/27/2014 
// Design Name:   position_generation 
// Module Name:   X:/EC551/Final_Project_rev1/t_position_generation.v 
// Project Name:  Final_Project_rev1 
// Target Device:   
// Tool versions:   
// Description:  
// 
// Verilog Test Fixture created by ISE for module: position_generation 
// 
// Dependencies: 
//  
// Revision: 
// Revision 0.01 - File Created 
// Additional Comments: 
//  
//////////////////////////////////////////////////////////////////////////////// 
 
module t_position_generation; 
 
	// Inputs 
	reg clk; 
	reg new_enemy_1; 
	reg new_enemy_2; 
	reg new_bullet_1; 
	reg [9:0] cha_pos_x; 
	reg [9:0] cha_pos_y; 
 
	// Outputs 
	wire [9:0] position_x_1; 
	wire [9:0] position_y_1; 
	wire [9:0] position_x_2; 
	wire [9:0] position_y_2; 
	wire [9:0] position_bullet_x; 
	wire [9:0] position_bullet_y; 
	wire position_valid_1; 
	wire position_valid_2; 
	wire position_valid_3; 
 
	// Instantiate the Unit Under Test (UUT) 
	position_generation uut ( 
		.clk(clk),  
		.new_enemy_1(new_enemy_1),  
		.new_enemy_2(new_enemy_2),  
		.new_bullet_1(new_bullet_1),  
		.cha_pos_x(cha_pos_x),  
		.cha_pos_y(cha_pos_y),  
		.position_x_1(position_x_1),  
		.position_y_1(position_y_1),  
		.position_x_2(position_x_2),  
		.position_y_2(position_y_2),  
		.position_bullet_x(position_bullet_x),  
		.position_bullet_y(position_bullet_y),  
		.position_valid_1(position_valid_1),  
		.position_valid_2(position_valid_2),  
		.position_valid_3(position_valid_3) 
	); 
 
	initial begin 
		// Initialize Inputs 
		clk=0; 
		new_enemy_1 = 0; 
		new_enemy_2 = 0; 
		new_bullet_1 = 0; 
		cha_pos_x = 0; 
		cha_pos_y = 0; 
 
		// Wait 100 ns for global reset to finish 
		#100; 
       
		new_enemy_1 = 1; 
		new_enemy_2 = 1; 
		new_bullet_1 = 1; 
		 
		 
		cha_pos_x = 0; 
		cha_pos_y = 100; 
		// Add stimulus here 
 
	end 
   
	always
		#5 clk=!clk;       
endmodule 
 
